package cn.edu.glut.user.service;

import java.util.Collection;
import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.support.SimpleJpaRepository;

import cn.edu.glut.entity.Student;
import cn.edu.glut.vo.StudentToAdminVO;

public interface StudentService {

	int save(Student s);

	/**
	 * 
	 * @param pageable 分页信息
	 * @param isSelect 是否选题
	 * @param majorId  专业名称
	 * @return
	 */
	Page<StudentToAdminVO> list(Pageable pageable, String majorId, Boolean isSelect, Boolean isSelectSuccess);

	int update(Student s);

	Student findById(String id);

	void delete(String id);

	void deleteAll();

	void save(Collection<Student> collection);

	StudentToAdminVO findStudentToAdminVOByUsername(String username);

	List<StudentToAdminVO> listBySubjectId(String subjectId);
	
}
